<#if ps.css?exists>
	<style>@import "${ps.css}"</style>
</#if>

<@cs.mark name="listAdd">
	<div class="search_results_query clearfix">
		<@s.a href="${fn.link(ps.action('_add'))}"><@s.text name="action.add"/></@s.a>
	</div>
</@cs.mark>

<@cs.mark name="listPagination">
	<@cs.pageInfoTag pageInfo="execute" url="/${ps.targetAction}.htm?" />
</@cs.mark>

<div class="search_results clearfix" id="search_results"><div class="column results">

<@cs.mark name="listDetail">
<#if (execute?exists) && (execute.data.size()>0)>
	<#assign pageElement = ps.getElement('execute.data')>
	<#list execute.data as data>
	${stack.push(data)}
	<div class="result clearfix">
		<@cs.mark name="listId">
			<div class="image"><@s.property value="id"/></div>
		</@cs.mark>
		
		<@cs.mark name="listField">
			<div class="info"><dl class="clearfix">
				<#list pageElement.visibleElements as element>
					<dt><@s.text name="${element.label}"/>:</dt><dd class="result_name fn"><@s.property value="${element.name}"/></dd>
				</#list>
			</dl></div>
		</@cs.mark>
		
		<@cs.mark name="listButton">
			<ul class="actionspro">
				<li><@s.a href="${fn.link(ps.action('view'), 'model.id=' + data.id)}"><@s.text name="action.view"/></@s.a></li>
				<li><@s.a href="${fn.link(ps.action('_update'), 'model.id=' + data.id)}"><@s.text name="action.update"/></@s.a></li>
			</ul>
		</@cs.mark>
	</div>
	</#list>
<#else>
	<@s.text name="generic.noResult"/>
</#if>
</@cs.mark>

</div></div>